#! /bin/sh

### BEGIN INIT INFO
# Provides:          mountboxdata
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: mounts data disks
# Description:       mounts data disks for box
### END INIT INFO

service_name=mountboxdata


case "$1" in
        start)
                echo -n "Starting $service_name "

                mount -t ntfs /dev/sda8 /media/disk/sda8

                if [ "$?" != 0 ] ; then
                        echo " failed"
                        exit 1
                fi

                echo " done"
        ;;

        stop)
                echo -n "Shutting down $service_name "

                umount /media/disk/sda8

                echo " done"
        ;;

        status)
                echo "status method is not supported"
        ;;

        restart)
                $0 stop
                $0 start
        ;;

        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
        ;;

esac